package checkbox;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JCheckBox;

public class JCheckBoxPanel extends JCheckBox implements ActionListener{

	private static final long serialVersionUID = 1L;
	private boolean _status;
	private String _name;
	public String getElementName()
	{
		return _name;
	}
	public JCheckBoxPanel(boolean status,String name)
	{
		_name=name;
		_status=status;
		selected();
	}
	public JCheckBoxPanel(boolean status)
	{
		_status=status;
		selected();
	}
	void selected()
	{
		this.setSelected(_status);
	}
	@Override
	public void actionPerformed(ActionEvent arg0) {
		
	}
}
